package cn.ren.cloud.dto;


import cn.ren.cloud.domain.Course;
import cn.ren.cloud.domain.CourseDetail;
import cn.ren.cloud.domain.CourseMarket;
import cn.ren.cloud.domain.CourseResource;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CourseDto {

    @Valid
    private Course course;
    @Valid
    private CourseDetail courseDetail;
    @Valid
    private CourseMarket courseMarket;
    @Valid
    private CourseResource courseResource;
    @NotEmpty(message = "讲师不能为空！")
    private List<Long> teacharIds;

}
